package goods.api;

import goods.model.ProductModel;
import goods.model.ProductModelAttr;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by 31714 on 2016/11/7.
 */
public interface ProductModelApi {

    public Page<ProductModel> findPageByParams(String modelName, String modelImg, String path, boolean isDefaultModel, Pageable pageable);

    public Page<ProductModel> findPageByParams(String modelName, String modelImg, String path, Pageable pageable);

    public void saveBean(ProductModel productModel);

    public ProductModel findDataById(String id);

    public void deleteModel(String id);

    public List<ProductModel> getModelList(boolean isDelete);

    public List<ProductModel> findAllModel();

    public List<ProductModelAttr> findByModelId(ProductModel productModel);

    public ProductModelAttr findData_ById(String id);

    public ProductModelAttr findByCodeAndIsDelete(String code, boolean isDelete);

    public Page<ProductModelAttr> findPageByParams(String product_model_id, String name, Pageable pageable);

    public void saveAttrBean(ProductModelAttr productModelAttr);

    public void deleteModelAttr(String id);

    public String toString();
}
